package syncmasterTesting;

import junit.framework.TestCase;
import syncmaster.BeatObserver;
import syncmaster.BPMObserver;
import syncmaster.HeartModel;

public class HeartModelSingletonTest extends TestCase {
private BeatObserver beatO1 = null, beatO2 = null;
private BPMObserver bpmO1 = null, bpmO2 = null;

//toma las 2 instancias de cada observer
public void setObs() {
        
        beatO1 = HeartModel.getbeatInstance();
        beatO2 = HeartModel.getbeatInstance();
        
        bpmO1 = HeartModel.getbpmInstance();
        bpmO2 = HeartModel.getbpmInstance();
}

//testea que ambas sean las mismas
public void testbeatObs() {
        TestCase.assertEquals(true, beatO1 == beatO2);
}

public void testbpmObs() {
        TestCase.assertEquals(true, bpmO1 == bpmO2);
}


}
